﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ec_System.Models.Web
{
    public class CustomerComplaintResponseData : ResponseBase<List<CustomerComplaintData>>
    {
    }
    public class CustomerComplaintRequestData : RequestBase
    {
        public string LoginID { get; set; }
    }

    public partial class CustomerComplaintData
    {
        public Int32 ID { get; set; }
        public Int32 ComplaintType { get; set; }
        public Int32 Status { get; set; }
        public System.DateTime Indate { get; set; }
        public String CustomerLoginId { get; set; }
        public String Title { get; set; }
        public String OrderId { get; set; }
    }
    public partial class CustomerComplaintData
    {
        public string Contents { get; set; }
        public string ShowComplaintType
        {
            get
            {
                switch (this.ComplaintType)
                {
                    case 1: return "商品质量";
                    case 2: return "订单问题";
                    case 3: return "送货问题";
                    case 4: return "服务质量";
                    default: return "";
                }
            }
        }
        public string ShowStatus
        {
            get
            {
                switch (this.Status)
                {
                    case 1: return "未回复";
                    case 2: return "已回复";
                    case 0: return "关闭";
                    default: return "";
                }
            }
        }

        public List<ComplaintDetailData> DetailList { get; set; }
    }

    /// <summary>
    /// 投诉详细
    /// </summary>
    public class ComplaintDetailData
    {
        public Int32 ID { get; set; }
        public Int32 ComplaintID { get; set; }
        public System.DateTime InDate { get; set; }
        public System.DateTime ReplayTime { get; set; }
        public String Contents { get; set; }
        public String ReplayUser { get; set; }
        public String ReplayContent { get; set; }
    }
}
